If you want to monitor your processor usage but don’t want the Activity Monitor window to remain open, you can set up Activity Monitor to display information as a graph in its Dock icon.
The Dock icon can show a graph of processor (CPU) usage, CPU history, network usage, disk activity, or memory use.
Choose View > Dock Icon, and then choose the type of activity you want to show.
The activity is displayed in the Dock until you quit Activity Monitor.